package com.sinosoft.system.primary.entity;

   /**
    * @ClassName SysToken 实体类
    * @date 2017-2-8 
    * @author shangxp
    */ 

public class SysToken {
//以下为循环实体类的代码
    //用户id
    private int id;
    //用户名
    private String username;
    //角色名称S
    private String roles;
    //发布者
    private String issuer;
    //标签值
    private String jwt;
    //token开始时间
    private String nowmillis;
    //token存活时间
    private String ttlmillis;
    //IP地址
    private String ipaddr;

	public SysToken(){};
	
	public SysToken(
    		int id,
    		String username,
    		String roles,
    		String issuer,
    		String jwt,
    		String nowmillis,
    		String ttlmillis,
    		String ipaddr
		){
			super();
    		this.id=id;	
    		this.username=username;	
    		this.roles=roles;	
    		this.issuer=issuer;	
    		this.jwt=jwt;	
    		this.nowmillis=nowmillis;	
    		this.ttlmillis=ttlmillis;	
    		this.ipaddr=ipaddr;	
	};

    public int getId(){
        return id;
    }
    public void setId (int id){
        this.id = id;
    }
    public String getUsername(){
        return username;
    }
    public void setUsername (String username){
        this.username = username;
    }
    public String getRoles(){
        return roles;
    }
    public void setRoles (String roles){
        this.roles = roles;
    }
    public String getIssuer(){
        return issuer;
    }
    public void setIssuer (String issuer){
        this.issuer = issuer;
    }
    public String getJwt(){
        return jwt;
    }
    public void setJwt (String jwt){
        this.jwt = jwt;
    }
    public String getNowmillis(){
        return nowmillis;
    }
    public void setNowmillis (String nowmillis){
        this.nowmillis = nowmillis;
    }
    public String getTtlmillis(){
        return ttlmillis;
    }
    public void setTtlmillis (String ttlmillis){
        this.ttlmillis = ttlmillis;
    }
    public String getIpaddr(){
        return ipaddr;
    }
    public void setIpaddr (String ipaddr){
        this.ipaddr = ipaddr;
    }

	@Override
	public String toString() {
		return "SysToken ["
		+"  id=" + id 
		+"  username=" + username 
		+"  roles=" + roles 
		+"  issuer=" + issuer 
		+"  jwt=" + jwt 
		+"  nowmillis=" + nowmillis 
		+"  ttlmillis=" + ttlmillis 
		+"  ipaddr=" + ipaddr 
		+"]";		
	}
}